﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DBHelper;
using BusinessLayer.RegInfo.Entities;
using System.Data.SqlClient;
using System.Data;

namespace BusinessLayer.RegInfo
{    
    public class AccountTokenBL
    {
        public void Insert(AccountToken accountToken)
        {
            var adapter = new BaseDAO(DbConfig.DbRegInfoConnectionString);
            adapter.AddParameter("@AccountId", accountToken.AccountId);
            adapter.AddParameter("@TokenKey", accountToken.TokenKey);
            adapter.AddParameter("@Status", accountToken.Status);
            adapter.ExecuteNonQuery("sp_AccountToken_Insert", CommandType.StoredProcedure, CustomConnectionState.CloseOnExit);
        }
    }
}
